<?php
//
// +------------------------------------------------------------------------+
// | PHP Version 5.4                                                        |
// +------------------------------------------------------------------------+
// | Copyright (c) All rights reserved.                                     |
// +------------------------------------------------------------------------+
// | 世纪车来车往(北京）网络科技有限公司 版权所有！                         |
// | TEL:010-63732365  HOTLINE:400-6688-365  EMAIL:clcw@clcw.com.cn         |
// | $Revision: 1.0 $                                                       |
// +------------------------------------------------------------------------+
// | Author: songaimin@clcw.com.cn  Blog:http://blog.csdn.net/samxx8        |
// +------------------------------------------------------------------------+
//
namespace AuctionCore\App;
use AuctionCore\System\AuctionException;

/**
* APP类
* @author       Eric Lee
*/
class App{

    public function __construct(){
    }

    /**
     * @param string $sort_id   1.回传系统，2来拍车APP
     * @param string $driver    1.Android pad 2.Android phone 3.Apple pad 4.Apple phone
     */
    function get_app_url($sort_id='2',$driver='2'){
        $condition = array('sort_id' => $sort_id, 'driver' => $driver, 'status' => 1);
        $lastest = M('client_app')->where($condition)->order('`id` DESC')->find();
        return $lastest;
    }

}

?>